package com.bowos.zmado.model;

import java.sql.Timestamp;

import com.orifine.orm.annotation.Column;
import com.orifine.orm.annotation.Id;
import com.orifine.orm.annotation.Length;
import com.orifine.orm.annotation.Table;

/**
 * 帖子
 * @author Administrator
 *
 */
@Table
public class Post {
	@Id
	@Column
	private Integer id;
	
	/**
	 * 所属主题
	 */
	@Column
	private Subject subject;
	
	/**
	 * 作者/发表者
	 */
	@Column
	private User author;
	
	/**
	 * 发布日期
	 */
	@Column
	private Timestamp publishDate;
	
	/**
	 * 回复内容
	 */
	@Column
	@Length(2000)
	private String replyContent;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Subject getSubject() {
		return subject;
	}

	public void setSubject(Subject subject) {
		this.subject = subject;
	}

	public User getAuthor() {
		return author;
	}

	public void setAuthor(User author) {
		this.author = author;
	}

	public Timestamp getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Timestamp publishDate) {
		this.publishDate = publishDate;
	}

	public String getReplyContent() {
		return replyContent;
	}

	public void setReplyContent(String replyContent) {
		this.replyContent = replyContent;
	}
}
